package com.oracle.cmp.common;

public class Result {
    private boolean succ;
    private Object data;
    private String msg;

    public Result(boolean succ, Object data, String msg) {
        this.succ = succ;
        this.data = data;
        this.msg = msg;
    }
    public Result(){
        this.succ = true;
    }

    public boolean isSucc() {
        return succ;
    }

    public void setSucc(boolean succ) {
        this.succ = succ;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    @Override
    public String toString() {
        return "Result{" +
                "succ=" + succ +
                ", data=" + data +
                ", msg='" + msg + '\'' +
                '}';
    }
}
